package com.hj.file;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;

import java.util.stream.Stream;

@SpringBootApplication
@ComponentScan({"com.hj.system", "com.hj.file"})
@MapperScan({"com.hj.file.**.dao"})
@EnableCaching
public class FileApplication implements CommandLineRunner {

    @Autowired
    ApplicationContext applicationContext;
    public static void main(String[] args) {
        SpringApplication.run(FileApplication.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
        //Stream.of(applicationContext.getBeanDefinitionNames()).forEach(System.out::println);
    }
}
